/* GENERAL BODY */
body {
  background-image: url("../images/Images/Scen4BG.png");
  color: #f0f0f0;
  background-size: cover;
  background-position: center;
  position: relative;
  background-repeat: no-repeat;
  font-family: monospace;
  margin: 0;
  padding: 0;
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2); /* dim strength */
  z-index: 0;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

body > * {
  position: relative;
  z-index: 1;
}

/* HEADER */
header {
  text-align: center;
  margin-bottom: 40px;
  
}
main{
  padding: 0 auto;
  margin-bottom: 120px;
}

/* NAV - horizontal by default */
nav {
  text-align: center;
  margin-bottom: 20px;
  background-color: rgba(0, 0, 0, 0.9);
  padding: 10px 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 30px;
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 30px;
  margin: 0 20px;
  text-align: center;
  transition: color 0.3s ease, font-size 0.3s ease;
}

nav a:hover {
  color: #40c55d;
  font-size: 35px;
}

/* HEADER LOGO */
.header-logo {
  display: block;
  margin: 20px auto;
  width: 300px;
  max-width: 90%;
  height: auto;
}

/* TAG BUTTONS */
.tags-btn {
  margin-top: 20px;
  display: flex;
  justify-content: center;  /* keep tags centered */
  gap: 10px;
}

.tags-btn button {
  background-color: rgba(255,255,255,0.1);
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 15px;
  transition: font-size 0.3s ease, color 0.2s ease;
}

.tags-btn button:hover,
.tags-btn button.active {
  font-size: 16px;
  color: #7dd3fc;
}
body {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

body.loaded {
  opacity: 1;
  transform: translateY(0);
}
/* MAIN PROJECTS CONTAINER */
.MyNext {
  display: flex;
  flex-wrap: wrap;          
  justify-content: center;  /* center all projects */
  gap: 50px;
  padding: 50px 20px;
}

/* EACH PROJECT */
.MyNexts {
  display: flex;
  flex-direction: column;   
  align-items: center;      /* center content inside each project */
  margin-bottom: 50px;
  width: 100%;
}

/* SLIMO PROJECT */
.SLIMO-Project {
  display: flex;
  flex-direction: column;
  align-items: center;      /* center image and preview box */
  gap: 20px;                
  margin: 0 auto;            /* ensures container is centered */
}

/* PROJECT IMAGE */
.SLIMO-Project img {
  width: 300px;
  max-width: 100%;          /* responsive for mobile */
  height: auto;
  transition: width 0.3s ease;
}

.SLIMO-Project img:hover {
  width: 310px;
}

/* PREVIEW BOX */
.SLIMO-Box-preview {
  background-image: url("../images/Images/panel.png");
  background-position: center;
  background-size: 350px 150px;
  background-repeat: no-repeat;
  padding: 50px;
  text-align: center;
}

/* FOOTER */
footer {
  text-align: center;
  opacity: 0.6;
  font-size: 14px;
  background-color: rgb(82, 104, 104);
  padding: 20px 0;
          -webkit-mask-image: linear-gradient(to top, black 70%, transparent 100%);
  mask-image: linear-gradient(to top, black 70%, transparent 100%);
}
.support-me {
  text-align: center;
}

.support-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 20px;
  background: #29abe0;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
}

.support-btn:hover {
  opacity: 0.85;
}
.End {
  display: flex;
  flex-direction: column;   /* stack everything vertically */
  align-items: center;      /* center logo, text, socials */
  gap: 15px;
}

.Privacy-Policy {
  color: white;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease, font-size 0.2s ease;
}

.Privacy-Policy:hover {
  color: black;
  font-size: 15px;
}

.Socials {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.Socials img {
  width: 30px;
  height: auto;
}
/* NAV STACK ON MOBILE ONLY */
@media (max-width: 768px) {
  nav {
    flex-direction: column;  /* stack links vertically */
    gap: 10px;
  }

  nav a {
    font-size: 20px;
  }
  nav {
    padding-bottom: 50px;
  }
  .tags-btn button {
    font-size: 14px;
    padding: 8px 15px;
  }

  .SLIMO-Project img {
    width: 80%;
  }

  .SLIMO-Box-preview {
    background-size: 90% 150px;
    padding: 30px;
  }
  footer {
    font-size: 12px;
    padding: 20px 10px;
  }

  .End img {
    width: 150px;
    height: auto;
  }

  .Privacy-Policy {
    font-size: 13px;
  }

  .Privacy-Policy:hover {
    font-size: 14px;
  }

  .Socials img {
    width: 25px;
  }
}
/* MOBILE FIXES */
@media (max-width: 768px) {
  .SLIMO-Project img {
    width: 80%;            /* scale down image on mobile */
  }

  .SLIMO-Box-preview {
    background-size: 90% 120px;
    padding: 30px;
  }
}